// 专门放置路由路径
import Login from '@/views/Login'
import User from '@/views/User'
import Layout from '@/views/Layout'
import Home from '@/views/Home'
import Slot from '@/demo/Slot.vue'
import Search from '@/views/Search'
import SearchResult from '@/views/Search/SearchResult'
export default [
  {
    path: '/',
    redirect: '/login'
  },
  {
    name: 'login',
    path: '/login',
    component: Login
  },
  {
    name: 'layout',
    path: '/layout',
    component: Layout,
    redirect: '/layout/home',
    children: [
      {
        name: 'home',
        path: 'home',
        component: Home
      },
      {
        name: 'uesr',
        path: 'user',
        component: User
      }
    ]

  },
  {
    path: '/slot',
    component: Slot
  },
  {
    path: '/search',
    component: Search

  },
  {
    path: '/search/:keywords',
    component: SearchResult
  }

]
